import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class HJ26 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = "";
        while((str = br.readLine()) != null) {
            StringBuilder sb = new StringBuilder();
            //首先忽略掉大小写，把属于英文字母的字符排序（从 a(A) 开始, 到z(Z)）输出
            for(int i = 0; i < 26; i++) {
                char c = (char)(i + 'A');
                for(int j = 0; j < str.length(); j++) {
                    char ch = str.charAt(j);
                    if(c == ch || c == ch - 32) {//从A开始输出，忽略大小写 a-A=32
                        sb.append(ch);
                    }
                }
            }
            //非英文字母的其它字符保持原来的位置
            for(int i = 0; i < str.length(); i++) {
                char ch = str.charAt(i);
                if(!(ch>='A' && ch<='Z') && !(ch>='a' && ch<='z')) {
                    sb.insert(i, ch);
                }
            }
            System.out.println(sb.toString());
        }
        br.close();
    }
}
